//package frog.lazy.framework.datasource;
//
//import org.springframework.core.annotation.Order;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.PreDestroy;
//import javax.annotation.Resource;
//
//@Component
//@Order(99)
//public class ReleaseResources {
//
//    @Resource
//    private DynamicDataSourceRegister dynamicDataSourceRegister;
//
//    @PreDestroy
//    public void destory(){
//        dynamicDataSourceRegister.closeConnection();
//    }
//}
